/**   
 * @Title: OrgDataServiceImpl.java 
 * CopyRight(c)2010-DMX 
 */
package com.dmx.fw.service.impl;

/** 
 * @Description: Organization Service Implement
 * @author: zhaojie
 * @date: 2010
 * @version V1.0 
 * 
 */
import com.dmx.fw.bean.mapping.pojo.Organization;
import com.dmx.fw.dao.interfaces.OrganizationDao;
import com.dmx.fw.service.impl.BaseServiceImpl;
import com.dmx.fw.service.interfaces.OrgDataService;

public class OrgDataServiceImpl extends BaseServiceImpl implements OrgDataService{

	private OrganizationDao orgDataDao;
	
	/**
	 * <p>Description: 创建Organization</p> 
	 * @param paramData
	 * @return Long
	 * @see com.dmx.fw.service.interfaces.OrgDataService#create(com.dmx.fw.bean.mapping.pojo.Organization)
	 */
	public Long create(Organization paramData){
		return this.orgDataDao.create(paramData);
	}
	
	/**
	 * <p>Description: 根据ID,删除Organization</p> 
	 * @param paramData 
	 * @see com.dmx.fw.service.interfaces.OrgDataService#delete(com.dmx.fw.bean.mapping.pojo.Organization)
	 */
	public void delete(Organization paramData){
		this.orgDataDao.delete(paramData);
	}
	
	/**
	 * <p>Description: 更新Organization</p> 
	 * @param paramData 
	 * @see com.dmx.fw.service.interfaces.OrgDataService#update(com.dmx.fw.bean.mapping.pojo.Organization)
	 */
	public void update(Organization paramData){
		this.orgDataDao.update(paramData);
	}

	/**
	 * <p>Description: 根据ID加载Organization</p> 
	 * @param orgId
	 * @return 
	 * @see com.dmx.fw.service.interfaces.OrgDataService#getOrganization(java.lang.String)
	 */
	public Organization getOrganization(String orgId){
		return this.orgDataDao.getOrganization(orgId);
	}

	public OrganizationDao getOrgDataDao() {
		return orgDataDao;
	}

	public void setOrgDataDao(OrganizationDao orgDataDao) {
		this.orgDataDao = orgDataDao;
	}

	/**
	 * <p>Description: 判断某一Organization下orgId是否唯一</p> 
	 * @param orgId
	 * @return 
	 * @see com.dmx.fw.service.interfaces.OrgDataService#uniqueCheck(java.lang.String)
	 */
	public boolean uniqueCheck(final String orgId){
		return orgDataDao.uniqueCheck(orgId);
	}
}
